﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iLangl.Model;

namespace iLangl.LanguageWire.Managers
{
	public class ProductManager
	{
		#region Singelton Pattern
		private ProductManager()
		{
		}

		private static ProductManager instance;
		private static object mutex = new object();
		/// <summary>
		/// The instance of the SettingsManager.
		/// </summary>
		public static ProductManager Instance
		{
			get
			{
				if (instance == null)
				{
					lock (mutex)
					{
						if (instance == null)
						{
							instance = new ProductManager();
						}
					}
				}
				return instance;
			}
		}
		#endregion


		public IList<Product> GetProducts()
		{
			List<Product>  products = new List<Product>();

			Product prod1 = new Product();
			prod1.Id = "1";
			prod1.Name = "Direct Translation";
			products.Add(prod1);

			Product prod2 = new Product();
			prod2.Id = "2";
			prod2.Name = "Full Service";
			products.Add(prod1);

			return products;
		}
	}
}
